/**
 * 对话框
 */

toSubmit = function () {
    var answer = $("#answer").val();
    var questionId = $("#questionId",window.parent.document).val();
    var ajax = new $ax(Feng.ctxPath + "/question/answer?"+
        "answer=" + answer +
        "&questionId=" + questionId, function (data) {
        Feng.success("成功!");
        window.parent.msg.table.refresh();
        parent.layer.close(window.parent.msg.layerIndex)
    }, function (data) {
        parent.layer.close(window.parent.msg.layerIndex)
    });
    ajax.start();
};